<meta name="content-type" content="text/html; charset=UTF-8" />
<script>
$(function(){
	$("#selGoodsType").select2({
		width: "100%",
		minimumResultsForSearch: -1
	});
	
	$("#selGoodsStatus").select2({
		width: "100%",
		minimumResultsForSearch: -1
	});
	
	$("#selGoodsType").select2('val', '${goodsType}');
	$("#selGoodsStatus").select2('val', '${goodsStatus}');
	$("#selBuyers").select2('val', '${memberId}');
	$("#selSellers").select2('val', '${sellerId}');
	$("#inputStartDate7").datetimepicker({
		language : "zh-CN",
		pickTime : false
	});
	$("#inputEndDate7").datetimepicker({
		language : "zh-CN",
		pickTime : false
	});
	
	$("#inputStartDate7").on("dp.change", function(e) {
		$("#inputEndDate7").data("DateTimePicker").setMinDate(e.date);
	});

	$("#inputEndDate7").on("dp.change", function(e) {
		$("#inputStartDate7").data("DateTimePicker").setMaxDate(e.date);
	});
});
</script>
<div>
	<form class="form-horizontal" role="form" id="goodsForm" name="goodsForm" action="yueyogaAdmin/searchGoods.jhtml" method="post">
		<div class="form-group" id="product_search_cdts" style="display: none">
			<label for="txtGoodsCode" class="col-sm-1 control-label">编号</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txtGoodsCode" name="goodsCode" value="${goodsCode}" >
			</div>
			<label for="txtGoodsName" class="col-sm-1 control-label">名称</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txtGoodsName" name="goodsName" value="${goodsName}">
			</div>
			<br /> <br /> <label for="selGoodsType" class="col-sm-1 control-label">类型</label>
			<div class="col-sm-3">
				<!--  data-live-search="true" -->
				<!--#var(GoodType goodtype,List<GoodType> types)-->
				<select id="selGoodsType" class="selectpicker show-tick" data-width="100%" name="goodsType">
					<option value="">全部</option>
					<!--#foreach(goodtype in types)-->
					<option value="${goodtype.id}">${goodtype.name}</option>
					<!-- #end -->
				</select>
			</div>
			<label for="selGoodsStatus" class="col-sm-1 control-label">状态</label>
			<div class="col-sm-3">
				<select name="goodsStatus" class="selectpicker show-tick" data-width="100%" id="selGoodsStatus">
					<option value="">全部</option>
					<option value="0">上架</option>
					<option value="1">下架</option>
				</select>
			</div>
			<input type="hidden" value="1" id="hidPageNo" name="pageNo" /> <input type="hidden" value="1" id="hidSearchType" name="searchType" /> <br />
			<input type="hidden" value="block" name="display"/>
			<br />
			<div class="panel-db-search">
				<button id="btn_pc_search" type="submit" class="btn btn-default btn-ade-default">搜索</button>
			</div>
		</div>
	</form>
	<form class="form-horizontal" role="form" id="goodsOrderForm" name="goodsOrderForm" method="post" action="yueyogaAdmin/searchGoodsOrder.jhtml">
		<div class="form-group" id="order_search_cdts">
			<label for="txtGoodsCode" class="col-sm-1 control-label">编号</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txtGoodsCode" name="goodsCode" value="${goodsCode}" >
			</div>
			<label for="txtGoodsName" class="col-sm-1 control-label">名称</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txtGoodsName" name="goodsName" value="${goodsName}" >
			</div>
			<br /> <br /> <label for="txt_buyer" class="col-sm-1 control-label">会员</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-live-search="true" data-width="100%" name="memberId" id="selBuyers">
					<option value=""> </option>
					<!-- #for(Member member:members) -->
					<option value="${member.memberid}">
					<!-- #if(member.cardnumber!=null) -->
					${member.cardnumber}-${member.name}
					<!-- #else -->
					${member.name}
					<!-- #end -->
					</option>
					<!-- #end -->
				</select>
			</div>
			<label for="txt_seller" class="col-sm-1 control-label">负责人</label>
			<div class="col-sm-3">
				<select class="selectpicker show-tick" data-live-search="true" data-width="100%" name="sellerId" id="selSellers">
					<option value=""> </option>
					<!-- #for(GroupUserModel respor:respors) -->
					<option value="${respor.id}">${respor.name}</option>
					<!-- #end -->
				</select>
			</div>
			<br /> <br /><br /> <br /> <label for="inputStartDate7" class="col-sm-1 control-label">购买日期</label>
			<div class="col-sm-3">
				<div id="inputStartDate7" class="input-group date" data-date-format="YYYY-MM-DD">
					<input id="buyBeginTime" name="buyBeginTime" type='text' value="${buyBeginTime}" class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>

			<label for="inputEndDate7"  class="panel-searh-zhi">至</label>
			<div class="col-sm-3">
				<div id="inputEndDate7" class="input-group date" data-date-format="YYYY-MM-DD">
					<input id="buyBeginEndTime" name="buyEndTime" type='text' value="${buyEndTime}" class="form-control" /> <span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			</div>
			
			<input type="hidden" value="1" id="hidOrderPageNo" name="pageNo" /> 
			<input type="hidden" value="2" id="hidOrderSearchType" name="searchType" />
			<input type="hidden" value="block" name="display"/>
			<br /> <br />
			<div class="panel-db-search">
				<button id="btn_pc_search" type="submit" class="btn btn-default btn-ade-default">搜索</button>
			</div>
		</div>
	</form>
</div>